#include <iostream>
using namespace std;
template <typename T>

class Complex {
	private:
		T realPart;
		T imaginaryPart;
	public:
		Complex(T real = 0, T imaginary = 0) : realPart(real), imaginaryPart(imaginary) {}
		Complex<T> operator+(const Complex<T> &other) const {
			return Complex<T>(realPart + other.realPart, imaginaryPart + other.imaginaryPart);
		}
		void display() const {
			cout << "(" << realPart << ", " << imaginaryPart << ")" << endl;
		}
};

int main() {
	double real1, img1, real2, img2;

	cin >> real1 >> img1;
	cin >> real2 >> img2;
	Complex<double> complex1(real1, img1);
	Complex<double> complex2(real2, img2);
	Complex<double> result = complex1 + complex2;
	result.display();
	return 0;
}